import React from 'react';
import ReactDOM from 'react-dom/client';
import zhCN from 'antd/es/locale/zh_CN';

// import 'antd/dist/antd.min.css';
import 'antd/dist/antd.less';
import './styles/index.scss'
import 'moment/locale/zh-cn';
import {Button, ConfigProvider,DatePicker} from 'antd'


const App = ()=>{
  return(
    <ConfigProvider locale={zhCN} componentSize={'middle'} form={{ validateMessage:'该字段是必传的' }}>
      <div>
      <DatePicker />
      <Button type='primary'>按钮</Button>
      </div>
    </ConfigProvider>
  )
}

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
    <App />
);